/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Server;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

/**
 *
 * @author SuperMeng
 */
public class test2 {
    public static void main(String[] arg) {
        ApplicationContext cxt = new FileSystemXmlApplicationContext("web/WEB-INF/applicationContext.xml");
        ShareFiletitfImpl sff = (ShareFiletitfImpl) cxt.getBean("ftb");
        Filetbl ftbi = (Filetbl) cxt.getBean("ftbi");
        ftbi.setFilename("aaa");
        ftbi.setFilesize(100);
        ftbi.setIp("bbb");
        ftbi.setMd5("ccc");
        sff.add(ftbi);
        sff.delete(ftbi);
    }
}
